<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:spring="http://www.springframework.org/tags" version="2.0">
	<jsp:directive.page contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8" session="true" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><spring:message code="page.addUser.title" />
Insert title here</title>
<spring:url value="/resources/style.css" var="cssRes"></spring:url>
<link href="${cssRes}" rel="stylesheet" type="text/css" />
</head>
<body>
	<c:import url="header.jsp" />

	<c:if test="${addUser ne null}">
		<spring:message code="adminpage.button.createUser"
			var="buttonCreateUser" />

		<div>
			<table>
				<CAPTION>
					<spring:message code="adminpage.registerform.caption" />
				</CAPTION>
				<br />
				<FORM action="${pageContext.request.contextPath}/admin/addCustomer"
					method="post">
					<tr>
						<td><spring:message code="adminpage.user.login" /> :</td>
						<td><INPUT type="text" name="cLogin" /></td>
					</tr>
					<tr>
						<td><spring:message code="adminpage.user.passowrd" /> :</td>
						<td><INPUT type="password" name="cPassword" /></td>
					</tr>
					<tr>
						<td><spring:message code="adminpage.customer.name" /> :</td>
						<td><INPUT type="text" name="cName" /></td>
					</tr>
					<tr>
						<td><spring:message code="adminpage.customer.surname" /> :</td>
						<td><INPUT type="text" name="cSurname" /></td>
					</tr>
					<tr>
						<td><spring:message code="adminpage.customer.secondname" />
							:</td>
						<td><INPUT type="text" name="cSecondname" /></td>
					</tr>
					<tr>
						<td><spring:message code="adminpage.customer.driveLicense" />
							:</td>
						<td><INPUT type="text" name="cDriverLicense" /></td>
					</tr>
					<tr>
						<td><spring:message code="adminpage.customer.telephone" /> :
						</td>
						<td><INPUT type="tel" name="cPhone" /></td>
					</tr>
					<tr>
						<td><spring:message code="adminpage.customer.email" /> :</td>
						<td><INPUT type="email" name="cEmail" /></td>
					</tr>
					<tr>
						<td id="output"><INPUT type="submit"
							value="${buttonCreateUser}" /></td>
					</tr>
				</FORM>
			</table>
		</div>
	</c:if>
</body>
	</html>
</jsp:root>